package com.demo.designmode.template;

/**
 * @Author: jxm
 * @Description: 模板方法模式 测试
 * @Date: 2023-11-17 16:23
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        //炒手撕包菜
        AbstractClass baoCai = new ConcreteClass_BaoCai();
        baoCai.cookProcess();

        System.out.println("---------------------");
        //炒蒜蓉菜心
        AbstractClass caiXin = new ConcreteClass_CaiXin();
        caiXin.cookProcess();

    }
}
